#ifndef MOTIONTRACKING_H
#define MOTIONTRACKING_H

#include "cv.h"
#include "highgui.h"
#include "bar.h"
#define CORNER 1;

static CvSize win_size= cvSize(10,10);

class motiontracking
{
    public:
    motiontracking(IplImage *img);
    int calculatePositionY(IplImage *img,bar player);
  
    private:
	CvSize img_sz; //image size
	CvSize pyr_sz; //pyramide size
	char features_found[ 1 ]; //arrays for features found and errors 
	float feature_errors[ 1 ];
	IplImage* pyrA; 
	IplImage* pyrB;
	IplImage* grey;
	IplImage* prev_grey;
	IplImage* eig_image; //for lucas kanade
	IplImage* tmp_image; //for lucas kanade
	IplImage* swap_temp;
	IplImage* image; 
	CvPoint2D32f* cornersA;
	CvPoint2D32f* cornersB;
	int corner_count;
	int average;
	
};

#endif
